<?php
include "../include/global.php";

?>
<?php echo '<?xml version="1.0" encoding="UTF-8"?>';?>
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
<?php
$sql = "SELECT h.hotel_id, h.hotel_name, c.country_code, h.lang FROM ".pre_table."hotel h, ".pre_table."country c 
			WHERE c.country_id=h.country_id AND hotel_isactive=1 ORDER BY hotel_position";

$rs = execSQL($sql);
while($row=mysql_fetch_array($rs)){
	if($row['lang']=='v')
		$mod_hotel = 'khach-san';
	else
		$mod_hotel = 'hotels';
?>
<url><loc><?php echo const_Web_Url.'index.php/'.$mod_hotel.'/'.$row['country_code'].'/'.$row['hotel_id'].'/'.codau2kodau($row['hotel_name']).'.html';?></loc></url>
<?php	
}
?>
</urlset>